package com.example.wechat.model;

import java.util.Date;

public class Message {
    private int id;
    private int senderId;
    private int receiverId;
    private String content;
    private Date timestamp;
    private boolean isFromMe;
    private String senderName;

    public Message(int id, int senderId, int receiverId, String content, Date timestamp, boolean isFromMe, String senderName) {
        this.id = id;
        this.senderId = senderId;
        this.receiverId = receiverId;
        this.content = content;
        this.timestamp = timestamp;
        this.isFromMe = isFromMe;
        this.senderName = senderName;
    }

    public int getId() {
        return id;
    }

    public int getSenderId() {
        return senderId;
    }

    public int getReceiverId() {
        return receiverId;
    }

    public String getContent() {
        return content;
    }

    public Date getTimestamp() {
        return timestamp;
    }

    public boolean isFromMe() {
        return isFromMe;
    }

    public String getSenderName() {
        return senderName;
    }
} 